package com.itheima.inputstream;

import java.io.FileInputStream;
import java.io.IOException;

public class Demo02 {

    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("day12\\a.txt");

      /*  while (true) {
            int read = fis.read();
            if(read==-1){
                break;
            }
            System.out.println((char)read);
        }*/
     /*   int read;
        while ((read=fis.read())!=-1){
            System.out.println((char)read);
        }*/
     int  read;
     while ((read=fis.read())!=-1){
         System.out.println((char)read);
     }
        fis.close();

    }
}
